package kr.co.boogui.actions.member;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import kr.co.boogui.actions.ActionHandler;
import kr.co.boogui.dao.CinemaDAO;
import kr.co.boogui.dao.MovieDAO;
import kr.co.boogui.dao.ReservationDAO;

public class MypageAction implements ActionHandler {
	@Override
	public String execute(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		String viewPage = "f|/WEB-INF/jsp/tiles/index.jsp";
		String mno = req.getParameter("mno");
		System.out.println(mno);
		req.setAttribute("action", "../member/mypage.jsp");
		req.setAttribute("reservationinfo", ReservationDAO.readReservationInfo("rvinfo",mno));
		req.setAttribute("movielist", MovieDAO.readListMovie("reservationrate"));
		return viewPage;
		}

}
